{extend name="layout:default" /}
{block name="title"}修改{/block}
{block name="content"}
<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title">编辑菜单</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <form class="form-horizontal" method="post" enctype="multipart/form-data">
            <input type="hidden" name="id" value="{$nav.id}">
            <div class="form-group">
                <label class="col-sm-2 control-label">菜单名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" value="{$nav.name}" name="name" placeholder="Name">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">url地址</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" value="{$nav.url}" name="url" placeholder="Url">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">菜单层级</label>
                <div class="col-sm-10">
                    <select class="form-control" name="pid">
                        <option value="0">请选择层级</option>
                        {volist name="navs" id="vo"}
                        <option value="{$vo.id}" {if condition="$nav.pid eq $vo.id" } selected {else
                        /}{/if}>{$vo.name}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">状态</label>
                <div class="col-sm-10">
                    <label class="radio-inline">
                        <input type="radio" name="status" value="1" {if condition="$nav.status eq 1" } checked {else
                        /}{/if}>显示
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="status" value="0" {if condition="$nav.status eq 0" } checked {else
                        /}{/if}>隐藏
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-info pull-right">提交</button>
                </div>
            </div>
        </form>
    </div>
    <!-- /.box-body -->
</div>
{/block}